<script type="text/javascript">
	$(document).ready(function() {
		$('.carousel').elegantcarousel({
				delay:150,
				fade:300,
				slide:500,
				effect:'fade',					  
				orientation:'horizontal',
				loop: true,
				autoplay: true,
				time: 1000			});
		function center_main() {
			var window_height = $(window).height();
			var main_height = parseInt($('#main').css('height'));
			var main_height_margin = (window_height - main_height) / 2;
			$('#main').css('top',Math.floor(main_height_margin));
		}
		center_main();

	});
</script>

<div class="inner">
	<div class="example horizontal">
    	<div class="carousel">
        	<div class="carousel_container">
                <ul class="portfolio_items">
                    <li>
						<div class="inner">
							<a href=""><img src="<?php echo Yii::app()->baseUrl.'/uploads/h1.jpg'; ?>" /></a>
                    		<div class="caption">
								<a href=""><img src="<?php echo Yii::app()->baseUrl.'/images/home.png'; ?>" alt="hover image"/></a>
							</div>
						</div>
					</li>
                    <li>
						<div class="inner">
							<a href=""><img src="<?php echo Yii::app()->baseUrl.'/uploads/h2.jpg'; ?>" /></a>
                    		<div class="caption">
								<a href=""><img src="<?php echo Yii::app()->baseUrl.'/images/home.png'; ?>" alt="hover image"/></a>
							</div>
						</div>
					</li>
					<li>
						<div class="inner">
							<a href=""><img src="<?php echo Yii::app()->baseUrl.'/uploads/h3.jpg'; ?>" /></a>
                    		<div class="caption">
								<a href=""><img src="<?php echo Yii::app()->baseUrl.'/images/home.png'; ?>" alt="hover image"/></a>
							</div>
						</div>
					</li>
					<li>
						<div class="inner">
							<a href=""><img src="<?php echo Yii::app()->baseUrl.'/uploads/h4.jpg'; ?>" /></a>
                    		<div class="caption">
								<a href=""><img src="<?php echo Yii::app()->baseUrl.'/images/home.png'; ?>" alt="hover image"/></a>
							</div>
						</div>
					</li>
                </ul>
        	</div>
        </div>
    </div>
</div><!---------end iner------->

<div id="main-home">
	<div class="logo"><img src="<?php echo Yii::app()->baseUrl.'/images/logo.png'; ?>"/></div>
	<div id="ngon-ngu"><a href="#">English </a> / <a href="#" > Tiếng Việt</a></div>
</div><!------end #main-home------>